getIndex() Method |
This method returns the index of an artifact inside an artifact viewer. It can be used to select an artifact based on its index.
Syntax
Var index = artifactObject.getIndex( );
Return Value
This method returns the index of an artifact.
Example
The below code demonstrates the usage of this method to select and deselect an artifact.
//this method selects an artifact artifactViewer.selectArtifactByIndex( index ); //this method deselects an artifact which is currently selected artifactViewer.unSelectArtifactByIndex( index );